package com.gqj.bas.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.TreeEntity;

/**
 * 层格对象 bas_cabinet_grid
 * 
 * @author lxq
 * @date 2023-12-17
 */
public class BasCabinetGrid extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long gridId;

    /** 柜子ID */
    @Excel(name = "柜子ID")
    private Long cabinetId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderno;

    /** 亮灯编号 */
    @Excel(name = "亮灯编号")
    private Integer lightno;

    /** 层位名称 */
    @Excel(name = "层位名称")
    private String gridName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setGridId(Long gridId) 
    {
        this.gridId = gridId;
    }

    public Long getGridId() 
    {
        return gridId;
    }
    public void setCabinetId(Long cabinetId) 
    {
        this.cabinetId = cabinetId;
    }

    public Long getCabinetId() 
    {
        return cabinetId;
    }
    public void setGridName(String gridName) 
    {
        this.gridName = gridName;
    }

    public String getGridName() 
    {
        return gridName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Integer getOrderno() {
        return orderno;
    }

    public void setOrderno(Integer orderno) {
        this.orderno = orderno;
    }

    public Integer getLightno() {
        return lightno;
    }

    public void setLightno(Integer lightno) {
        this.lightno = lightno;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gridId", getGridId())
            .append("cabinetId", getCabinetId())
            .append("gridName", getGridName())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
